<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
<link  rel="stylesheet" type="text/css" href="../css/1.css"/>
		<title>My JSP 'updateDaily.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
	<s:form method="POST" action="UpdateDaily">
		<s:set var="aa" value="#parameters.id"/>
		<s:set var="dailynow" value="#session.D" />
		<table>
			<tr>
				<s:hidden name="id" value="%{#aa}"/> 
				<td><s:textfield name="updatedaily.Title" value="%{#dailynow.Title}"></s:textfield></td>
			</tr>
			<tr>
				<td><s:textarea rows="10"  cols="80" name="updatedaily.Content" value="%{#dailynow.Content}">  </s:textarea></td>
			</tr>
			<tr>
				<td><s:submit value="更新"></s:submit></td>
				<td><s:reset value="取消"></s:reset></td>
			</tr>
		</table>
		</s:form>
	</body>
</html>
